<?php

namespace App\Console\Commands;
use Illuminate\Console\Command;
use Illuminate\Foundation\Inspiring;
use App\Medicare_Class\Medicare_Class;
error_reporting(E_ALL^E_NOTICE);

class Crawler extends Command
{
    /**
     * The name and signature of the console command.
     *
     * @var string
     */
    protected $signature = 'crawler {url?}';

    /**
     * The console command description.
     *
     * @var string
     */
    protected $description = '这是一个爬虫';

    /**
     * Execute the console command.
     *
     * @return mixed
     */
    public function handle()
    {
        $Medicare = new Medicare_Class;
        $Medicare->getGain($this->argument('url'));
    }
}